LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetExtendedData(Byte,Byte[]) Method
See Also 
Leadtools.Dicom Namespace > DicomAssociate Class > SetExtendedData Method : SetExtendedData(Byte,Byte[]) Method



id
Presentation Context ID of the Presentation Context to which to set the extended data. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
data
Buffer that contains the data to set.
id
Presentation Context ID of the Presentation Context to which to set the extended data. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
data
Buffer that contains the data to set.
Sets the extended data associated with the specified Presentation Context.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub SetExtendedData( _
   ByVal id As Byte, _
   ByVal data() As Byte _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomAssociate
Dim id As Byte
Dim data() As Byte
 
instance.SetExtendedData(id, data)
C# 
public void SetExtendedData( 
   byte id,
   byte[] data
)
C++/CLI 
public:
void SetExtendedData( 
   byte id,
   array<byte>^ data
) 

Parameters

id
Presentation Context ID of the Presentation Context to which to set the extended data. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
data
Buffer that contains the data to set.

Example

For an example, refer to DicomAssociate.IsRoleSelect.

Remarks

To retrieve the length of the extended data associated with a Presentation Context, call GetExtendedDataLength.

To get the extended data associated with a Presentation Context, call GetExtendedData or Leadtools.Dicom.DicomAssociate.GetExtendedDataPtr.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features